package com.yike.user.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.yike.common.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;

/**
 * 平台菜单
 *
 * @author Sakura
 * @since 2024-10-29
 */
@Data
@Accessors(chain = true)
@ApiModel(value = "用户权限菜单树信息")
public class PlatformMenuTreeVo implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("菜单ID")
    private Long id;

    @ApiModelProperty("父ID")
    private Long parentId;

    @ApiModelProperty("状态")
    private Integer status;

    @ApiModelProperty("菜单类型")
    private String menuType;

    @ApiModelProperty("菜单名称")
    private String menuName;

    @ApiModelProperty("路由名称")
    private String routeName;

    @ApiModelProperty("路由路径")
    private String routePath;

    @ApiModelProperty("组件名称")
    private String component;

    @ApiModelProperty("排序")
    private Integer order;

    @ApiModelProperty("国际化键")
    @TableField("i18nKey")
    private String i18nKey;

    @ApiModelProperty("图标")
    private String icon;

    @ApiModelProperty("图标类型")
    private String iconType;

    @ApiModelProperty("隐藏菜单")
    private Boolean hideInMenu;

    @ApiModelProperty("常量路由")
    private Boolean constant;

    @ApiModelProperty("缓存路由")
    private Boolean keepAlive;

    @ApiModelProperty("子菜单")
    List<PlatformMenuTreeVo> children;

}
